package huanzhao.erp.domain.annotation;

import huanzhao.erp.domain.types.DeptPositionType;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 检查员工职位是否符合要求
 *
 * @author April
 * @version 1.0
 * 2024/10/13 10:44
 */
@Target({METHOD})
@Retention(RUNTIME)
@Documented
public @interface CheckPosition {
    /**
     * 员工职位必须为其中一种
     * 默认包含业务经理
     *
     * @return DeptPositionType[]
     * 2024/10/9 22:52:35
     */
    DeptPositionType[] value();
}
